//实现将各月的天数输出
public class GetDay {
    public static void main(String[] args) {
        int []day=new int[]{31,28,31,30,31,30,31,31,30,31,30,31};
        for (int i = 0; i <12 ; i++) { //i要与下标对应
            System.out.println((i+1)+"月的天数是"+day[i]);
        }
    }
}
